package com.kh.pajx.sop.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.kh.pajx.sop.base.BaseServiceImpl;
import com.kh.pajx.sop.dao.IStockDevInDetailDao;
import com.kh.pajx.sop.domain.PageBean;
import com.kh.pajx.sop.domain.stock.StockDevInDetail;
import com.kh.pajx.sop.service.IStockDevInDetailService;
import com.kh.pajx.sop.util.page.QueryHelper;
@Service
@Transactional
public class StockDevInDetailServiceImpl extends BaseServiceImpl<StockDevInDetail> implements IStockDevInDetailService{

	@Resource
	private IStockDevInDetailDao detailDao;
	
	public void save(StockDevInDetail detail){
		detailDao.save(detail);
	}
	
	public void update(StockDevInDetail detail){
		detailDao.update(detail);
	}
	public StockDevInDetail getById(String uuid){
		return detailDao.getById(uuid);
		
	}
	
	public void delete(String uuid){
		detailDao.delete(uuid);
	}
	public List<StockDevInDetail> findAll(){
		
		return detailDao.findAll();
	}
	public PageBean getPageBean(int pageNum, int pageSize,
			QueryHelper queryHelper) {
		return detailDao.getPageBean(pageNum, pageSize, queryHelper);
	}

	@Override
	public List<StockDevInDetail> getBybillCode(Long billCode) {
		// TODO Auto-generated method stub
		return detailDao.getBybillCode(billCode);
	}
}
